<?php
/** Test model: document
 *
 */
namespace Test\modules\Test;

class Model_Employee
    extends \Yz_Model_Abstract
{

    const SOURCE_NAME = "test_employees";

    /** Model's constructor requires module
     *  @param Yz_Module_Interface $module
     */
    protected function init()
    {
        debug();
        parent::init();
        $dept = $this->selectModel('Dept');
        $d =& $this->__dict__;
        $d['id']     = new \Yz_Property_Id();
        $d['birthdate']   = new \Yz_Property_Date();
        $d['name']   = new \Yz_Property_String();
        $d['dept']  = new \Yz_Property_ForeignKey($dept, array('fieldName' => 'deptId'));
    }


}
